package goover.unit02;

public class StringBufferDemo01 {
    public static void main(String[] args){
        StringBuffer sb = new StringBuffer();
        sb.append("abc");
        System.out.println(sb);
        sb.insert(3,"def");
        System.out.println(sb);
        sb.deleteCharAt(5);
        System.out.println(sb);
        sb.delete(1,5);
        System.out.println(sb);
        sb.replace(0,1,"bc");
        System.out.println(sb);
        sb.toString();
        System.out.println(sb);
        sb.reverse();
        System.out.println(sb);
    }
}
